<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>nmap</Name>
        <Homepage>http://www.insecure.org/nmap/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <Icon>nmap</Icon>
        <Summary>Utility for network exploration or security auditing</Summary>
        <Description>Nmap is a utility for network exploration or security auditing.</Description>
        <Archive sha1sum="c1a44558c72aed3c78d63d54b5b008db69f0aaac" type="tarbz2">https://nmap.org/dist/nmap-7.01.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>subversion-devel</Dependency>
            <Dependency>libpcap-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>lua-devel</Dependency>
            <Dependency>apr-devel</Dependency>
            <Dependency>gcc</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">nmap-4.75-include.patch</Patch>
            <Patch level="1">nmap-4.75-nolua.patch</Patch>
            <Patch level="1">nmap-5.10_beta1-string.patch</Patch>
            <Patch level="1">nmap-5.21-python.patch</Patch>
            <Patch level="1">tr.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>nmap</Name>
        <IsA>app:console</IsA>
        <RuntimeDependencies>
            <Dependency>subversion</Dependency>
            <Dependency>libpcap</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>lua</Dependency>
            <Dependency>apr</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/ncat</Path>
            <Path fileType="data">/usr/share/nmap</Path>
            <Path fileType="data">/usr/share/nping</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/nmap.png">nmap.png</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>zenmap</Name>
        <IsA>app:gui</IsA>
        <Summary>zenmap is the graphical frontend for nmap</Summary>
        <RuntimeDependencies>
            <Dependency release="current">nmap</Dependency>
            <Dependency>python-gtk</Dependency>
            <Dependency>xdg-utils</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/zenmap</Path>
            <Path fileType="man">/usr/share/man/man1/zenmap.1</Path>
            <Path fileType="doc">/usr/lib/python*/site-packages</Path>
            <Path fileType="doc">/usr/share/zenmap</Path>
            <Path fileType="doc">/usr/share/applications</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2016-03-02</Date>
            <Version>7.01</Version>
            <Comment>Version bump, rebuilt with docker</Comment>
            <Name>İbrahim KARAGÜZEL</Name>
            <Email>karaguzelibrahim@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2014-09-14</Date>
            <Version>6.47</Version>
            <Comment>Version bump.</Comment>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2014-01-11</Date>
            <Version>6.0.1</Version>
            <Comment>rebuild for cyrus-sasl</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2012-09-01</Date>
            <Version>6.0.1</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
